package cn.tedu.demo1.cn.tedu;

import cn.tedu.demo1.entity.Emp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmpController {
    @RequestMapping(path ="/add", produces = "text/html;charset=utf-8")
    @ResponseBody
    public String add(Emp emp){

        return "我是:"+emp.getName()+"今天:"+emp.getAge()+"岁了,我的工作是:"+emp.getJob();
    }

}
